package com.bdb.myswipemultitype;

import android.app.Application;

import com.xiaoq.base.BaseContext;
import com.xiaoq.base.http.callback.GlobalHttpCallback;
import com.xiaoq.base.http.entity.AccessToken;
import com.xiaoq.base.utils.cache.AppCache;
import com.xiaoq.base.utils.device.ManifestUtil;

import java.util.HashMap;


/**
 * Created by xiaoq on 16-8-4.
 * 自定义application
 */
public class AppContext extends Application {

    private static AppContext sContext;

    @Override
    public void onCreate() {
        super.onCreate();

        sContext = this;
        init();
    }

    private void init() {
        BaseContext.init(this, true);//!BuildConfig.API_ENV);
    }

    public static AppContext getInstance() {
        return sContext;
    }

}
